package top.rainbowecho.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.rainbowecho.model.percona.ArticleInfo;

import java.util.List;

/**
 * <p>
 * VIEW Mapper 接口
 * </p>
 *
 * @author 杨健
 * @since 2020-07-30
 */
public interface ArticleInfoMapper extends BaseMapper<ArticleInfo> {

    /**
     * 以id进行查找
     *
     * @param articleId
     * @return
     */
    ArticleInfo selectByArticleId(String articleId);

    List<ArticleInfo> selectTopThreeLike();

    List<ArticleInfo> selectTopThreeBrowse();
}
